Skip to content

fix(metadata-protocol)!: a save naming no package at a bundle member only the dependent holds writes the row-held base's row the bare read addresses - #37069

Merged
os-zhuang merged 11 commits into
mainfrom
claude/project-thread-g0avze
Nov 25, 2026
Merged

os-zhuang merged 11 commits into
mainfrom
claude/project-thread-g0avze

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Irene · project thread

Fixes #35524

Clause-②: no (narrowing)
Metadata-protocol: none
Skills-docs: none — the moved cell is an authored (row-held) base with an email_template locale only its dependent stores; no skills/** or content/docs page teaches where a save naming no package lands there, and skills/objectstack-platform/SKILL.md's customization paragraph covers the code-shipped base, whose bare save this diff leaves unchanged (pinned in the new test's controls); the spec packageId sentence is #35529's

维护者速读

  1. 用户能看到什么变化:同一封邮件模板,基座包存了英文版、依赖它的包只存了法文版时,不指定包去保存法文版(直接保存或存草稿),以前改的是依赖包那一份、随后按名字读法文版仍显示“找不到”;现在写进基座包的法文版,与指定基座包保存完全一样,依赖包那一份原样保留,保存后按名字一读就能看到刚存的内容;不指定包的读草稿、发布草稿、丢弃草稿也一并对准基座包那份草稿;法文版此前留有一份不属于任何包的草稿时同样如此,那份旧草稿原样保留。
  2. 为什么做:落实「同一个地址,读到谁就写谁」这条已定规则,补上“基座包和依赖包同名邮件模板”这一类里尚未覆盖的一格。
  3. 出错会怎样:只影响基座包和依赖包都存了同一邮件模板、且某语言只有依赖包有的环境;基座包没有草稿时,不指定包发布会被拒,丢弃则不动并说明还剩哪份草稿,与指定基座包的回答一致;可直接撤回本次改动,不需要迁移数据。
  4. 要你做什么:无。

What changes

At a named non-canonical member of a bundled type's name no package ships (today email_template, e.g. fr-FR), where an authored base package holds a stored row of the item at some member (its canonical member, or another one such as de-DE) and only a package declaring that base holds a row of the member, the read naming no package takes the base's address (rowHeldBaseAddressOf, the S1-guarded arm; unchanged, pinned in meta-disabled-holder-served-stack.test.ts M1, M2, S2) and answers 404. The doors naming no package that write or address that member's draft now resolve the same address:

  • packagelessRowHeldBaseAddress (protocol-save.ts) also answers the base where the member's active rows are bound to exactly one package, that package is not the base, and the read's own judgment names the base (rowHeldBaseAddressOf, asked, not copied). Two or more holders answer exactly as before (metadata-protocol: with a bundled base and a dependent both holding a member, the bare write doors still answer 409 naming both while the bare read now answers the base #34681).
  • The publish-mode save naming no package asks it in its one-holder branch (after the holder refusal, so every refusal stands) and writes as the save naming the base does.
  • The draft doors' address naming no package (packagelessDraftAddress, behind the draft save, the strict draft read, the per-item publish and the draft discard) is wrapped by the new packagelessRowHeldBaseDraftAddress: at this cell it answers the base's draft, promoted into the base's row. The draft save sets the base as its package (the repository otherwise resolves its own write head), as the metadata-protocol: with a bundled base and a dependent both holding a member, the bare write doors still answer 409 naming both while the bare read now answers the base #34681 follow arm does, so the named-base rule and the late override re-judgment judge the base.
  • Contract review S2, option (b) (the seat's route; it replaces the S1 option (a) exemption of the previous head): the package-unbound draft sub-cell moves to the base like the rest of the cell. Where the stored draft address names the package-unbound draft (key === null: a package-unbound draft stored at the member with no draft of the dependent beside it, as a bare draft save writes it while no package holds the member), the wrapper still answers the base's address (none until the base holds a draft there), and the draft save's follow still names the base. One predicate, draftAddressFollowsRowHeldBase (now into !== null), is asked by both, so they cannot part. The draft save passes the base to the repository, so the orphan-draft adoption (a save naming no package) does not run: the package-unbound draft stays untouched, as the save naming the base leaves it. Under the S1 exemption the bare draft save adopted that draft into the dependent, after which the bare draft read missed the draft just saved (S2).
  • The draft discard naming no package at that sub-cell (protocol-diff-delete-load.ts): with no base draft it answers the receipt the discard naming the base answers, naming the package-unbound draft still stored (receiptPackageId), never No pending draft for TYPE/NAME. while a draft is stored. Only the moved address is none with a package-unbound draft stored (packagelessDraftAddress otherwise makes that draft the address itself), so no other cell's receipt changes.

Ruling route: the write follows the read (epic ruling 6781691009, 「a write resolves its address exactly as the read at the same address resolves it」; #34348 ruling (b), 「reads and writes give the same answer」). The read is not changed.

FROM to TO (BREAKING, the narrowing arm):

  • bare save (REST PUT, in process), active: the dependent's row silently updated, read after it 404 (or 409) → the base's row written at the member, as ?package=BASE writes it; the dependent's row byte-unchanged; read after it 200 at the base.
  • bare draft save: the dependent's draft → the base's draft, as ?package=BASE.
  • bare draft read / per-item publish / draft discard: the dependent's draft read, promoted, removed → the base's draft read, promoted, removed. With only the dependent's draft stored: publish 200 into the dependent's row → 404 NO_DRAFT naming that draft; discard removed it → 200 receipt that discards nothing and names the remaining draft. Both equal the same request naming the base.
  • the package-unbound draft sub-cell: bare draft read served it, bare publish promoted it into the dependent's row, bare discard removed it, bare draft save adopted it into the dependent's draft → bare draft save writes the base's draft beside it (untouched) and the bare draft read reads back what was saved; bare publish after that save promotes the base's draft; a second bare draft save updates the base's draft (no second draft); with no base draft, the bare draft read still serves the package-unbound draft, bare publish 404 NO_DRAFT and bare discard a 200 receipt naming the package-unbound draft as still stored, all three equal to ?package=BASE.

Files: packages/metadata-protocol/src/protocol-save.ts (the helper's one-holder arm, the publish-mode and draft-mode save address, the new draft-address wrapper), packages/metadata-protocol/src/protocol-diff-delete-load.ts (the bare discard's receipt at the package-unbound sub-cell), packages/metadata-protocol/src/protocol.ts (the facade's packagelessDraftAddress forwards through the wrapper; still one forwarding call, check:facade-delegation-only green). Pins: packages/runtime/src/domains/meta-bare-save-dependent-only-member-35524.test.ts (new, named for this card, the #34681 fixture shape). Changeset: .changeset/35524-bare-save-follows-base-dependent-member.md (@objectstack/metadata-protocol patch, both declaration lines, BREAKING banner, ADR-0087 disposition not-required (no-migration-prescription)).

No spec touch: the save request's packageId description's row-held-base exception sentence stays true (it covers a member the base and the dependent both hold). Its earlier sentence, "an active save then writes the row of the one package the item's active rows are bound to", now has this cell as a second exception; that text is left to sibling card #35529 (see Acceptance notes).

Declarations: Clause-②: no (narrowing) because a published accept set narrows (the bare publish of the dependent's lone draft at this member moves from 200 to 404 NO_DRAFT) and what a bare write lands in moves (the dependent's row → the base's row), the epic ruling's "D's row silently updated → E's row (narrowing)" shape. Metadata-protocol: none: no key, accepted value or meaning of authored metadata moves; what moves is the row a request naming no package addresses, as PR #35450 declared for the sibling move.

Read first (by risk):

  1. protocol-save.ts, packagelessRowHeldBaseAddress: the new equality address.candidates.includes(base) === address.candidates.length > 1 (two or more: the base among them; one: the base is not that one).
  2. protocol-save.ts, packagelessRowHeldBaseDraftAddress, draftAddressFollowsRowHeldBase (into !== null) and the draft save's widened follow condition that asks it; protocol-diff-delete-load.ts, receiptPackageId (the bare discard's receipt over a package-unbound draft at the base's address).
  3. protocol.ts, the facade's packagelessDraftAddress, now the one resolution every bare draft door shares.

Two-minute check: pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/domains/meta-bare-save-dependent-only-member-35524.test.ts after building @objectstack/metadata-protocol; expect Tests 10 passed (10).

Tests

The card's 3-step sequence, measured on main a73edb3 and on this head (booted kernel, real protocol and sqlite store)

Fixture: authored WA holds en-US, authored WD (declares WA) holds fr-FR, same email_template name.

Step main, rows stored after boot main, kernel booted over the rows this head (both)
1. GET ?member=fr-FR 404 404 404
2. PUT fr-FR, no package 200, rewrites WD's row 200, rewrites WD's row 200, writes a new WA row at fr-FR
rows after (package_id, bundle_member) WA/canonical, WD/fr-FR (edited) same WA/canonical, WD/fr-FR (unchanged), WA/fr-FR (edited)
3. GET ?member=fr-FR 409 RESOURCE_CONFLICT 404 200 at WA, the saved content

Why step 3 answered 409 on main: only where the rows were stored after boot. The registry then held no row of WA's; the save's registry write-through registered WD's fr-FR item, so the registry named WD the name's one holder, and the read, at the base's address, was refused by the exact-qualifier judgment ("not held by package WA ... held by package WD"). ?package=WA&member=fr-FR answered the same 409. On a kernel booted over the rows (registry hydrated with both), step 3 answered 404. Either way the save wrote a row the read did not serve.

The save naming WA at fr-FR on main (in process and REST PUT ?package=WA): 200, writes a new WA row at fr-FR, WD's row untouched, and the bare read then serves it (200 at WA). So the stop rule did not trigger; this head makes the bare save answer exactly that.

Per-door conclusions at the cell (main → this head)
  • save, publish mode (REST and in process): moved, pinned (writes WA's row, as named).
  • draft save: moved, pinned (writes WA's draft, as named).
  • strict draft read: moved, pinned (WD's draft → WA's draft; the draft the bare draft save writes).
  • per-item publish: moved, pinned (promotes WA's draft into WA's row; with only WD's draft, 404 NO_DRAFT, equal to ?package=WA).
  • draft discard: moved, pinned (removes WA's draft; with only WD's draft, a receipt that discards nothing, equal to ?package=WA).
  • a package-unbound draft stored at the member, no draft of WD beside it (contract review S2 option (b)): moved, pinned (the bare draft save writes WA's draft beside it, untouched, and the bare draft read reads it back; the bare publish promotes WA's draft; a second bare draft save writes no second draft; with no WA draft the bare draft read serves the package-unbound draft, the bare publish answers NO_DRAFT/404 and the bare discard the named-base receipt, all equal to ?package=WA).
  • delete: unchanged, out of scope (still removes WD's row; it asks the row-held base only with two or more holders). See Acceptance notes.
  • history / diff / rollback: unchanged, out of scope (still WD's versions and row, through historySlotOf's two-or-more guard). See Acceptance notes.
  • After the first bare save writes WA's row at the member, the cell is the metadata-protocol: with a bundled base and a dependent both holding a member, the bare write doors still answer 409 naming both while the bare read now answers the base #34681 cell (two holders, the base among them) and every door follows the base as PR fix(metadata-protocol): the bare save, delete, publish, draft and history doors follow the row-held base the bare read serves #35450 pinned.
Pins (new file) and controls

meta-bare-save-dependent-only-member-35524.test.ts, 10 tests:

  1. REST PUT and in-process save on a kernel booted over the rows: step 1 404; WD's row byte-identical before and after (every stored column); rows equal to the save naming WA; no package-unbound row; bare read 200 at WA, ?package=WD still WD's; and after a restart.
  2. Rows stored after boot: the bare save writes WA's row and the bare read serves it (was 409).
  3. Draft save: WA's draft, same rows as the named draft save, WD's row byte-identical; bare draft read serves it; bare publish promotes into WA's row; bare read 200; bare discard removes the draft the bare draft save wrote.
  4. WD's own draft at the cell: bare publish and discard answer exactly what ?package=WA answers; ?package=WD publishes it.
  5. Read-only (code) base holding rows: the bare save answers 422 WRITABLE_PACKAGE_REQUIRED naming the base, as ?package=BASE (was the same code naming the dependent).
  6. CONTROLS: the canonical member both hold (the metadata-protocol: with a bundled base and a dependent both holding a member, the bare write doors still answer 409 naming both while the bare read now answers the base #34681 cell) still writes the base's row; the canonical member only the dependent holds (S1) is still read and written at the dependent; two packages with no base relation at a member both hold still 409 naming both, and at a member one of them holds that package's row is read and written; a base that ships the name in code answers as today (bare read 404, bare save writes the dependent's customization row), pinned unchanged.
  7. A package-unbound draft stored at the member (contract review S2 option (b); laid by a bare draft save at fr-FR while no package held that member, then WD's fr-FR row stored), four tests: (i) the bare draft save writes WA's draft, rows equal to the draft save naming WA, the package-unbound draft untouched, and the bare draft read then reads back what was saved (['saved fr', WA], equal to the read naming WA); (ii) the bare per-item publish after that save promotes WA's draft, outcome and rows equal to packageId: WA; (iii) with no WA draft, the bare draft read equals the named one (['unbound fr', null]), the bare publish equals the named one (NO_DRAFT, 404) and the bare discard result equals the named discard's (success, reset and receipt, name blanked), rows unchanged; (iv) a second bare draft save updates WA's draft, one WA draft row.

Unchanged and green: meta-disabled-holder-served-stack.test.ts (M1, M2, S2 untouched) and meta-bare-write-doors-follow-base-34681.test.ts: Test Files 3 passed (3), Tests 182 passed (182) at 344fc14.

Ablations (one per moved pin; mutation through scripts/ablation-replace.mjs, rebuild, dist preflight, restore to the HEAD blob)
  • A, the publish-mode save's one-holder arm blanked (const resolved = base ?? address.packageId read as address.packageId): marker present in dist; tests 1, 2 and 5 red (Tests 3 failed | 3 passed (6)); restored, blob == HEAD, git diff HEAD empty.
  • B, packagelessRowHeldBaseDraftAddress returning the stored address: tests 3 and 4 red (Tests 2 failed | 4 passed (6)), re-run on 80f540b with the same reading; restored, blob == HEAD.
  • C, the draft save's follow condition back to ambiguous-only: test 3 red, the draft save writing package=com.qa.authoredaddon (Tests 1 failed | 5 passed (6)); restored, blob == HEAD.
  • Restore leg: rebuilt, all three markers absent from the 24 built files, pins Tests 6 passed (6).
  • D (previous round, contract review S1, the key !== null exemption): superseded by this round; E puts it back as the ablation.
  • E (this round, contract review S2 option (b)), the move of the package-unbound sub-cell undone (draftAddressFollowsRowHeldBase read as address.into !== null && address.key !== null, both callers at once): anchor x1 -> x0, marker present in 2 built files after the rebuild; test 7 (i) to (iv) red (Tests 4 failed | 6 passed (10): the bare draft save adopted the package-unbound draft into WD's draft, the bare publish then promoted the unbound draft into WD's row and answered 200, not NO_DRAFT). Restored, blob == HEAD (2c49e5ac9f32), git diff HEAD empty, rebuilt, marker absent from all 24 built files.
  • F (this round), the bare discard's receipt guard removed (? draftAddress.into read as ? draftAddress.into && null): marker present in 2 built files; test 7 (iii) red alone (Tests 1 failed | 9 passed (10)), the bare receipt No pending draft for email_template/NAME. against the named one No pending draft of email_template/NAME is bound to package 'com.qa.authoredbase', so nothing was discarded: its package-less draft remains. (the named-base answer, measured on this head). Restored, blob == HEAD (1c2294d6482b), git diff HEAD empty, rebuilt, marker absent from all 24 built files.
  • After both restores: pins Tests 10 passed (10). E and F ran at 4f232bf; 344fc14 after it changes only a docblock, the changeset and the pin's added draft-read equality (a control of the read, which neither ablated guard decides; not re-ablated), so the guards E and F ablate are byte-identical at the final head.

Acceptance notes

  • Not moved, same family (reported to the seat, not built here): at this cell the bare delete still removes WD's row, and the bare history, diff and rollback still read and restore WD's versions, while the bare read answers 404 (measured in process on main and on this head). They ask the row-held base only with two or more holders. Whether they follow the base (where there is nothing of the base's to remove or restore) is a design question for that family, not this card.
  • Moved this round (contract review S2 option (b)): the package-unbound draft sub-cell. Consequence stated in the changeset: with no base draft the bare draft read still serves it (as the read naming the base does; measured, now pinned in (iii)), while the bare publish and discard leave it stored. The changeset's banner names a base holding a row of any other member (a base holding only de-DE beside a dependent's fr-FR is the same cell), per the S1 review's ②.
  • Not moved: a base that ships the name in code, with a dependent's stored row at another member: the bare read at that member answers 404 and the bare save writes the dependent's customization row (measured, pinned unchanged).
  • SaveMetaItemRequestSchema.packageId's sentence "an active save then writes the row of the one package the item's active rows are bound to" now has this cell as an exception at the member grain, and rowHeldBaseAddressOf's docblock says the writes ask it only with two or more holders. Both are text for sibling card metadata-protocol: follow-ups from the #35450 contract review: the spec exception text, three door-request comments, and a rollback pin over real history #35529, which rewrites those descriptions; untouched here.
  • On main, the history naming WA at fr-FR (where WA holds no row) answered RESOURCE_CONFLICT; observation only.

Verification

Local runs at the final head 344fc14 (this round, contract review S2 option (b))
  • @objectstack/metadata-protocol typecheck exit 0, @objectstack/runtime typecheck (with its test-typecheck) exit 0, and the three files below, in one lock run at 344fc14: VERDICT command-exit 0. @objectstack/metadata-protocol test at 4f232bf (344fc14 changes only a docblock in that package): Test Files 370 passed | 9 skipped (379), Tests 23417 passed | 45 skipped (23462).
  • meta-bare-save-dependent-only-member-35524.test.ts, meta-bare-write-doors-follow-base-34681.test.ts, meta-disabled-holder-served-stack.test.ts: Test Files 3 passed (3), Tests 182 passed (182).
  • Derived gates (dispatch-gates.mjs --commands at 344fc14, 75 families, the same list as at 4f232bf): 75 exit 0 (check:type-check-debt under the lock, re-measure: OK; check:dual-build-cjs-loads measured over the dogfood closure's dist, 125 entry points load). --ran: 75 derived, 75 run, 0 NOT-MEASURED, 0 UNRUN.
  • test:repo, pnpm lint and the full farm are CI's. Check-runs at 344fc14: 53, 37 success, 16 skipped, none failed (Check Changeset, PR-body guards, Test Core 1..10, TypeScript Type Check, Lint & Repo Gates, Dogfood Regression Gate, Governed Surface Queue Guard among them).
  • Full dogfood battery (the narrowing arm) at 344fc14, closure built first: os-verify-lock: VERDICT command-exit 0 · held the lock 2915s (48m35s), Test Files 487 passed | 3 skipped (490), Tests 4128 passed | 68 skipped (4196), no failures. Also green at 4f232bf (Tests 4128 passed | 68 skipped (4196)).

🤖 Generated with Claude Code

https://claude.ai/code/session_01J8VVAj3FYe91JCMQZPS88h

… the dependent holds

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J8VVAj3FYe91JCMQZPS88h
…lows the row-held base

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J8VVAj3FYe91JCMQZPS88h
…er a forwarding call

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J8VVAj3FYe91JCMQZPS88h
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/metadata-protocol, touching 13 documentable anchor(s).

2 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/concepts/metadata-lifecycle.mdx (via ObjectStackProtocolImplementation (symbol, a top-level class))
  • content/docs/kernel/cluster.mdx (via ObjectStackProtocolImplementation (symbol, a top-level class))

⛔ 2 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v16.mdx (via ObjectStackProtocolImplementation (symbol, a top-level class))
  • content/docs/releases/v17/17-0.mdx (via ObjectStackProtocolImplementation (symbol, a top-level class))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 10 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 08bf7d2a41a754c601af90281446acf38c3169ec → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 6f38ede00f36b2f837085843a4515610432571ce — the merge of head 344fc148d28a5cbbb1ad4ba7cddcdca97d372a17 into base 08bf7d2a41a754c601af90281446acf38c3169ec, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 6f38ede00f36b2f837085843a4515610432571ce && git checkout 6f38ede00f36b2f837085843a4515610432571ce
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 08bf7d2a41a754c601af90281446acf38c3169ec 344fc148d28a5cbbb1ad4ba7cddcdca97d372a17 && git checkout -B drift-repro 08bf7d2a41a754c601af90281446acf38c3169ec && git merge --no-ff 344fc148d28a5cbbb1ad4ba7cddcdca97d372a17

node scripts/docs-audit/affected-docs.mjs --json 08bf7d2a41a754c601af90281446acf38c3169ec

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 08bf7d2a41a754c601af90281446acf38c3169ec → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · huangyiirene · session_01J8VVAj3FYe91JCMQZPS88h

Final green head for review, 2026-11-25T10:22Z: db0a77a90995c5c6487a521978f1cd05d86b3062 (main 9171bed merged in by the relay). CI at this head: 39 success, 18 skipped, 0 red. Full dogfood battery at this head: Test Files 487 passed, 3 skipped; Tests 4128 passed, 68 skipped; no failures (os-dev-report 7159591353 on #35524). Owed: L1 ACCEPT, then a contract-review-tier L2 on the narrowing face, both at this head. Landing is a hand-off (narrowing lands like Tier H), not an auto-merge.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · huangyiirene · session_01J8VVAo7qz23KxTeCEv1faj

席位核对

L1 · ACCEPT · 2026-11-25T10:25Z · head db0a77a90995c5c6487a521978f1cd05d86b3062 · L1-c, for area f2-I on the seat's GO · card #35524 (p2, inside the maintainer's partial resume of #37065 and #37069)

  • 形态: l1-face.mjs --pr 37069 at this head: open, draft, base main, first line Fixes #35524, no closing keyword binds another card. Fixes is right: the card's cell (the save naming no package at a member only the dependent holds) moves, and the same-family cells it does not move (bare delete, history, diff, rollback at that cell; the code-shipped base) are named in the body as out of scope, not as owed by this card.
  • 范围与 changeset: one face flag read and cleared by hand: @objectstack/runtime is touched with no changeset entry, but its only file is the new test packages/runtime/src/domains/meta-bare-save-dependent-only-member-35524.test.ts and the package ships files: [dist, README.md, CHANGELOG.md], so nothing published moves there. @objectstack/metadata-protocol (published) carries .changeset/35524-bare-save-follows-base-dependent-member.md, patch, both declaration lines, BREAKING banner, ADR-0087 disposition. Changeset read sentence by sentence against the diff: FROM/TO (bare save and draft save write the base's row or draft; bare draft read, per-item publish and discard act on the base's draft; with only the dependent's draft, publish 404 NO_DRAFT and discard discards nothing) matches protocol-save.ts and the facade's packagelessDraftAddress wrapper in protocol.ts; the "Not moved" list matches the callers' two-or-more guards for delete/history. File surface widened by protocol.ts beyond the claim, declared in the report with its reason (the draft chain the change itself would break); accepted.
  • Skills-docs: none with a reason: checked. No skills/** or content/docs page teaches where a bare save lands at an authored base's dependent-only member; the code-shipped base the platform skill covers is pinned unchanged in the test's controls.
  • 测试与门禁证据: 6 new pins with code/status asserted on every refusal case (WRITABLE_PACKAGE_REQUIRED/422, RESOURCE_CONFLICT/409, NO_DRAFT); three ablations A/B/C each red on its own arm and restored (report 7148652912). Check-runs at this head: 39 success, 18 expected skip, 0 failed, 0 pending; Lint & Repo Gates and TypeScript Type Check success. dogfood_battery pinned to this head (report 7159591353): full battery, 487 files / 4128 tests passed, no failures — owed by ! and (narrowing), present.
  • 接受的偏差: none beyond the declared protocol.ts widening.
  • 范围外去向: the build report's two class-b findings (bare delete/history/diff/rollback at this cell still act on the dependent's row while the bare read answers 404; bare save beside a code-shipped base writes the dependent's overlay) are unfiled ("reported to the seat"); the seat files them when its pause lifts. The spec packageId sentence goes to sibling card metadata-protocol: follow-ups from the #35450 contract review: the spec exception text, three door-request comments, and a rollback pin over real history #35529, named in the body.
  • 落地条款: a contract-review-tier L2 on the narrowing face is owed at this head next (L1-c runs it, one agent at a time). Narrowing ⇒ approver-landed (ruling of 2026-11-19 on governance: the guard scripts join the governed register, .claude/** lands by declared rule-change, and a narrowed spec change lands only by the maintainer #35321): the seat hands it to the approver after the L2 PASS. A new push voids this ACCEPT.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · huangyiirene · session_01J8VVAo7qz23KxTeCEv1faj

Contract-review-claim: session_01J8VVAo7qz23KxTeCEv1faj · head db0a77a · 2026-11-25T10:26Z

L1-c (L1 ACCEPT 7159693982) runs the owed CONTRACT_REVIEW_TIER review of the narrowing face in an isolated sub-agent, the only agent running seat-wide.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · huangyiirene · session_01J8VVAo7qz23KxTeCEv1faj

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: db0a77a90995c5c6487a521978f1cd05d86b3062
Local-runs: none
Scope: packages/metadata-protocol/src/protocol-save.ts, packages/metadata-protocol/src/protocol.ts, packages/runtime/src/domains/meta-bare-save-dependent-only-member-35524.test.ts + .changeset/35524-bare-save-follows-base-dependent-member.md (read for ② only, not ④-reviewed)
Security-touching: no
Rule-change-verified: none

Face: narrowing (Clause-②: no (narrowing) on the PR body and the changeset, ! in the title). PR #37069, card #35524. Read: the net diff against main, the card and its four comments, the check-runs on the head, and, outside the diff, the code the hunks cite (rowHeldBaseAddressOf and rowHeldBaseJudgment in protocol-meta-item-face.ts, packagelessDraftAddress and strictDraftReadAddress in protocol-lock-version-gates.ts, packagelessAddress in protocol-environment-rows.ts, the delete door in protocol-diff-delete-load.ts, the per-item publish in protocol-history-and-publish.ts, historySlotOf in protocol-history-slots.ts, packagelessHolderRefusal and the writable-package gate in protocol-save.ts). Nothing built or run. Check-runs on the head: every completed run is success or skipped (Check Changeset, PR-body guards, Test Core 1..10, TypeScript Type Check, Lint & Repo Gates, Dogfood Regression Gate, Governed Surface Queue Guard among them); none failed.

① Derived judgments

  • The one-holder arm of packagelessRowHeldBaseAddress: right. The new equality (the base is among the candidates exactly when there are two or more) answers the base with two or more holders only when the base is one of them (the metadata-protocol: with a bundled base and a dependent both holding a member, the bare write doors still answer 409 naming both while the bare read now answers the base #34681 arm, unchanged), and with one holder only when that holder is not the base. rowHeldBaseAddressOf is asked, not copied, so every exclusion of the read's judgment stands: a type with no members, a shipped name, an environment item at the member, a disabled row holder, a declined row, a customization pair among the holders, zero or two bases.
  • The canonical member (metadata-protocol: a package-less row beside two packages' rows of one name (no shipper) is served by store order on the plain read while /layers refuses — follow-ups of PR #33182 (#32607) #33210 contract review S1): not moved, right. With only the dependent holding the member, atMember.has(base) is false and rowHeldBaseAddressOf returns the base only when overlayMemberValue(...) is a string, which it is not for the canonical member, named or not. The helper returns undefined, the publish-mode save keeps address.packageId, and the draft wrapper returns pending. Pinned in the test's c_s1 control (bare read 200 at the dependent, bare save receipt package= the dependent, rows asserted).
  • The other callers of the widened helper: no cell moves through them. Each was read for a state where the helper now answers a base it did not answer on main (one bound holder, no package-less row at the member):
    • delete, active (protocol-diff-delete-load.ts, the guard on two or more rowsAtAddress.candidates): asked with two or more candidates only. Not moved.
    • draft discard and per-item publish, kind === 'ambiguous': the draft address is ambiguous either with two or more active candidates (the unchanged arm) or with no active row bound to a package (active.packageId === null needs zero candidates, since packagelessAddress names the one candidate even beside a package-less row); with zero candidates the helper returns undefined on its new first line. The cell the dispatch asked about (drafts of two packages over an active row held by the dependent alone) is not ambiguous on main either: it is none or draft keyed on the dependent, and it moves through the new wrapper, which the changeset declares.
    • history, diff, rollback (historySlotOf, guarded on two or more slots): two slots with one bound holder means the second slot is the package-less row; the helper returns undefined on address.unbound. Not moved.
    • publish-mode save, the arm for two or more address.candidates: unchanged.
      So the changeset's "Not moved" list (delete, history, diff, rollback at this member) agrees with the tree. The invariant is the callers' guards plus the helper's unbound return, not the helper's own; see N3.
  • The publish-mode save's one-holder branch: right. Asked after packagelessHolderRefusal, and only when servedPackagelessSaveAddress declined, so every earlier refusal stands; the resolved package is set on request, so the inherited named-base rule, the late override re-judgment and the writable-package gate judge the base.
  • The draft-mode follow (draftAddress.kind === 'ambiguous' || draftAddress.into !== null): right. The widened condition asks the helper for every address bound to a package; it answers a base only at the moved cell. Setting draftAddress = undefined skips the draft-mode packagelessHolderRefusal; at the cell that refusal cannot fire (the judgment already excludes a disabled row holder and a second unrelated base, and the two enabled packages keep every.some(enabled) true), so no refusal is lost.
  • packagelessRowHeldBaseDraftAddress's return shape: matches every consumer, with one sub-cell wrong (S1). strictDraftReadAddress reads kind and key; the publish reads kind, key, into, drafts.candidates; the discard reads kind, key, into, drafts; the save reads kind, key, into, drafts. All four fields are present and typed as the union. drafts left as every stored draft binding is what the receipts want: the publish's others and the discard's remaining-rows phrase then name the dependent's draft. The sub-cell where the stored draft is package-unbound is S1.
  • Read-only base: right. With a code package as the row-held base, the bare save resolves the base and the D1 gate (intent === 'runtime-only' && !host.isWritablePackage(request.packageId)) refuses WRITABLE_PACKAGE_REQUIRED / 422 naming it, the path the named request takes. Pinned (ro_cell: code and status asserted, equal to the named request's, rows unchanged).

② Semver level

@objectstack/metadata-protocol: patch with Clause-②: no (narrowing), Metadata-protocol: none, a BREAKING banner and the ADR-0087 disposition not-required (no-migration-prescription): the right declaration. No key, accepted value or meaning of authored metadata moves, so the level axis gives patch (AGENTS.md: "a non-protocol change, widening or breaking, ships patch and keeps its BREAKING banner and ADR-0087 disposition"); major is barred in the launch window; the narrowing arm is right because a published accept set narrows (the bare per-item publish of the dependent's lone draft: 200 to 404 NO_DRAFT) and the row a bare write lands in moves, the epic ruling's own "D's row silently updated → E's row (narrowing)" line. The disposition is right: no stored row is rewritten and no author-writable name is removed. Check Changeset is success on the head.

The FROM/TO list names the REST PUT, the in-process save (both modes), the draft read, the per-item publish and the draft discard, which is every door the diff moves. Two gaps between the text and the tree:

  • the package-unbound draft at the cell is moved and not listed (S1);
  • the banner says the base "holds the item's canonical member"; the code moves the cell whenever the base holds a row of ANY other member (a base holding only de-DE beside a dependent's fr-FR is the same cell, by rowHeldBaseJudgment). Folded into S1's changeset edit; alone it would be a nit.

③ Boundary flags

  • Dev reports 7148652912 and 7159591353: open_questions empty in both. The declared deviation (the file surface widened to protocol.ts, moving the bare draft read, publish and discard with the draft save) is accepted: a bare draft save that wrote a draft no bare draft door reached would have been a new read/write split, and the facade's packagelessDraftAddress is the one resolution those doors share. The two out-of-scope findings (the bare delete, history, diff and rollback at the cell; a code-shipped base) are not built here and are left to the seat's filing.
  • The card left the direction open ("the read follows the dependent, or the write refuses"). The diff takes the epic ruling 6781691009 literally, "a write resolves its address exactly as the read at the same address resolves it": the read is unchanged and the write follows it. No ruling is re-made here.
  • SQL push-down: no new id materialisation and no in-app join. The helper adds one readItemActiveRows read, taken only for a bundled type the registry reads by package; a bare draft save at such a type now takes that read twice (once in the wrapper, once in the follow). Not a finding.
  • Security: no hunk changes who may write. A bare write that resolves to the base is judged by the same gates as the request naming it: the inherited named-base rule (uninstalledNamedBaseRefusal, followedBase in draft mode), the late override verdict, and the writable-package gate. The gates asked before the address is resolved (packagelessOverlayWriteRefusal, namedBaseOverlayWriteRefusal, the flow-scoped tenantAuthoredWriteRefusal) concern a name a package ships or a flow, neither of which reaches this arm.

④ Design judgment

S1 (should-fix) — the package-unbound draft at the cell is moved, undeclared, unpinned, and the bare discard's receipt denies a stored draft. packagelessRowHeldBaseDraftAddress rewrites every address with into !== null, which includes { kind: 'draft', key: null, into: DEPENDENT }: a package-unbound draft at the member over the dependent's lone active row (reachable: a bare draft save at fr-FR while no package held that member is the package-unbound draft by unboundItemDraftAddress; the dependent's row stored afterwards gives this state). The wrapper answers { kind: 'none', key: BASE, into: BASE }, deciding kind from drafts.candidates alone and never reading key === null or drafts.unbound.

  • FROM (main): the bare draft read served that draft, the bare publish promoted it into the dependent (200), the bare discard removed it, the bare draft save adopted it.
  • TO (this head): the bare publish finds no draft at the base's key (404); the bare draft save writes a second draft bound to the base beside it; the bare discard reaches the last arm of the delete door and answers No pending draft for TYPE/NAME. while that draft is stored. The same discard naming the base answers "...so nothing was discarded:" followed by the remaining package-unbound draft (the request.packageId != null arm), and so does the metadata-protocol: with a bundled base and a dependent both holding a member, the bare write doors still answer 409 naming both while the bare read now answers the base #34681 two-holder arm, which sets request.packageId. So here the bare request does NOT answer as the request naming the base does, against the changeset's own sentence, and the receipt states something false about the store.
  • Neither the changeset's FROM/TO nor the test names this sub-cell.
    Fix, either way: (a) keep the stored address where the draft it names is the package-unbound one (address.key === null), and say so in the wrapper's docblock and the changeset's "Not moved"; or (b) keep the move, make the bare discard's receipt name the remaining package-unbound draft as the named request's does, and add the sub-cell to the FROM/TO. Pin whichever is chosen (bare draft read, publish and discard over a package-unbound draft at the cell, against ?package=BASE). With the same edit, widen the banner's "holds the item's canonical member" to the base holding a row of another member.

No must-fix.

Nits (no effect on correctness or the contract; none needs a fix on this head):

Controls, as asked: the canonical member both hold (c_shared: receipt package and rows), the canonical member only the dependent holds (c_s1: read 200 at the dependent, receipt, rows), unrelated holders at a shared member (c_unrel: read and save RESOURCE_CONFLICT / 409 naming both) and at a member one holds (c_unrel_fr), and a code-shipped base (shipmail: read 404, receipt package, rows) each carry a code, status or row assertion. The controls exercise the publish-mode save and the read; the draft doors at those cells are held by the code reading in ① only.

Implemented-by: claude/project-thread-g0avze
Reviewed-by: session_01J8VVAo7qz23KxTeCEv1faj/fable-l2-37069

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · huangyiirene · session_01J8VVAo7qz23KxTeCEv1faj

The brief L1-c handed its isolated CONTRACT_REVIEW_TIER sub-agent for the narrowing-face record above, filled from record-recognisers.mjs --brief-template; the sub-agent read the card, the PR, the cited rulings and the head check-runs, not the dispatch order, the claim or the L1. Extra prompt points beyond the template: every other caller of the widened packagelessRowHeldBaseAddress, the canonical-member guard, the draft-address return shape against its consumers, the semver/narrowing declaration, the test controls, and writable-package security.

Brief

Contract review brief — PR #37069 @ db0a77a90995c5c6487a521978f1cd05d86b3062 (card #35524)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #35524: its body and EVERY comment (rulings and earlier records included)
· PR #37069: its body, its file list, and the net diff against main at db0a77a90995c5c6487a521978f1cd05d86b3062
· the check-runs on db0a77a90995c5c6487a521978f1cd05d86b3062: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: (narrowing face: the whole diff outside the prose faces) packages/metadata-protocol/src/protocol-save.ts, packages/metadata-protocol/src/protocol.ts, packages/runtime/src/domains/meta-bare-save-dependent-only-member-35524.test.ts;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

Security — if a hits path is under skills/** or ui/skills/** and the change teaches security, auth or permission
behaviour the path name doesn't show, the record says so and the seat adopting the record adds the security label.
The record says so on its Security-touching: line, and the arm lands on no alone: write no ONLY when no changed
hunk teaches permission, sharing, credential, token, authentication or other security behaviour, else yes.

Rule change — if a hits path is under .claude/**: the PR body declares Rule-change: and you verify it against the diff.
Write Rule-change-verified: none ONLY when no changed hunk alters what an agent may do without the maintainer
(merge, bypass a check, change repository settings), what gets done and in what order (grading, dispatch, scope), or
what must go to him (decisions, maintainer actions); process steps, scripts, wording, slimming and file moves are not rule
changes. Write ruled ONLY when every such hunk copies the ruling the PR body quotes on its Ruling-ref: line — check the
copy against the quoted words, do not re-rule it. Otherwise yes: the pull request then waits for the maintainer.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-claude/25fb535a-733b-5351-a141-2940135fc987/scratchpad/pr-37069/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

…he dependent-only member

A bare draft address naming the package-unbound draft (key null) over a
member whose active row only the dependent holds is left as main gives it:
the bare draft read serves it, the bare publish promotes it into the
dependent's row, the bare discard removes it, and the bare draft save adopts
it rather than writing a second draft bound to the base. One predicate,
draftAddressFollowsRowHeldBase, is asked by the draft doors' address and the
draft save's follow. The changeset lists the sub-cell under "Not moved" and
its banner names a base holding a row of any other member.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J8VVAj3FYe91JCMQZPS88h
…raft at the dependent-only member

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J8VVAj3FYe91JCMQZPS88h
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · huangyiirene · session_01J8VVAj3FYe91JCMQZPS88h

Final green head for the delta reviews, 2026-11-25T12:26Z: ae5ffb36abc2af6bed6d48da355d4b9f2f82c6ed (the S1 patch round, option (a): predicate key !== null, changeset Not-moved and banner widened, four new pins). CI at this head: 39 success, 18 skipped, 0 red. Full dogfood battery at this head: Test Files 487 passed, 3 skipped; Tests 4128 passed, 68 skipped; no failures (os-dev-report 7162337288 on #35524). Owed: L1 delta re-read, then the contract-review delta on S1 by the same reviewer, both at this head. ACCEPT 7159693982 lapsed with the head move.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · huangyiirene · session_01J8VVAo7qz23KxTeCEv1faj

席位核对

L1 · ACCEPT (delta) · 2026-11-25T12:27Z · head ae5ffb36abc2af6bed6d48da355d4b9f2f82c6ed · L1-c, for area f2-I · card #35524 · after the S1 patch round on contract-review record 7159864456; supersedes ACCEPT 7159693982 (head db0a77a9)

  • 形态: l1-face.mjs --pr 37069 at this head: open, draft, base main, Fixes #35524, no keyword on another card. Two face flags read by hand: @objectstack/runtime touched with no changeset is the test file only (package ships dist alone), cleared as before; dogfood owed and present: dogfood_battery pinned to ae5ffb36 in report 7162337288, full battery, 487 files / 4128 tests passed, no failures.
  • Delta read (db0a77a9..ae5ffb36, 2 commits, 3 files, +70/−6): option (a) of S1. One predicate draftAddressFollowsRowHeldBase (into !== null && key !== null) is now asked by both the draft-address wrapper and the draft save's follow, so they cannot part; the package-unbound draft keeps its main address. The dev's choice of key over drafts.unbound is argued in the docblock (an unbound draft beside the dependent's own draft is not the draft the address names, and that declared cell still moves).
  • Changeset re-read sentence by sentence: the banner now says the base holds a row "at some member (its canonical member, or another one)", which fixes the folded wording item; "Not moved" adds the package-unbound draft with no dependent draft beside it, and its four door answers match the four new pins and the code.
  • 测试与门禁证据: four new pins, one per bare draft door, rows asserted. As-on-main run: moved pins 1–5 red, the four new pins and CONTROLS green. Ablation of the guard at both callers: 3 of 4 new pins red (save, publish, discard), the draft-read leg stays green and is recorded as a control, not a guard, in the PR body; restored to HEAD blob. Check-runs at this head: 39 success, 18 expected skip, 0 failed, 0 pending; Lint & Repo Gates and TypeScript Type Check success.
  • 接受的偏差: the four it blocks instead of one (so the ablation reads per door); the extra as-on-main run. Nits N1–N4 of record 7159864456 stand as recorded.
  • 落地条款: owed next on this head: the delta contract review of S1 by the same reviewer. Narrowing ⇒ approver-landed; the seat hands it to the approver after that PASS. The seat-owed items of ACCEPT 7159693982 (two class-b findings; metadata-protocol: follow-ups from the #35450 contract review: the spec exception text, three door-request comments, and a rollback pin over real history #35529 amendment, record N2) carry over. A new push voids this ACCEPT.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · huangyiirene · session_01J8VVAo7qz23KxTeCEv1faj

Contract-review-claim: session_01J8VVAo7qz23KxTeCEv1faj · head ae5ffb3 · 2026-11-25T12:28Z

Delta review of S1 (record 7159864456) on the patch-round head, by the same isolated CONTRACT_REVIEW_TIER reviewer, the only agent running seat-wide.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · huangyiirene · session_01J8VVAo7qz23KxTeCEv1faj

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: ae5ffb36abc2af6bed6d48da355d4b9f2f82c6ed
Local-runs: none
Scope: packages/metadata-protocol/src/protocol-save.ts, packages/metadata-protocol/src/protocol.ts, packages/runtime/src/domains/meta-bare-save-dependent-only-member-35524.test.ts + .changeset/35524-bare-save-follows-base-dependent-member.md (read for ② only, not ④-reviewed)
Security-touching: no
Rule-change-verified: none

Delta review on the new head, after record 7159864456 at db0a77a9. PR #37069, card #35524, narrowing face. Read: the diff between the two heads (three files: the changeset, protocol-save.ts, the test), dev report 7162337288 (weighed, not adopted), the check-runs on the new head, and, outside the diff, packagelessDraftAddress, the delete door's receipts, strictDraftReadAddress and the repository's orphan-draft adoption in resolveWriteHead. Nothing built or run. Check-runs on the new head: 39 success, 18 skipped, none failed.

S1: closed

① Derived judgments

  • draftAddressFollowsRowHeldBase (into !== null && key !== null): the right discriminator. Of the shapes packagelessDraftAddress returns with a package in into, key === null is exactly one arm: a package-unbound draft stored, no draft of the bound package beside it (draftRows.candidates.includes(own) is tested first and gives key: own). So "key is null while the dependent also holds a draft" cannot be built: that state has key the dependent's and moves, as declared. drafts.unbound would also be true there and would have un-moved a declared cell; the dev's reading is right.
  • The wrapper and the draft save's follow ask the one predicate: right. With key === null the wrapper returns the stored address, so the bare draft read serves the package-unbound draft, the bare publish promotes it into the dependent, the bare discard removes it (packageId = draftAddress.key = null, the row the probe reads), and the save's follow declines, leaving the repository's adoption. The false receipt is gone because the discard now finds the draft it addresses.
  • A package-unbound draft beside the dependent's own draft (moved, declared): receipts hold. The address is the base's; with no draft at the base the discard reaches the kind === 'none' receipt, whose remaining-rows phrase is built from rowsAtAddress.candidates and rowsAtAddress.unbound, so both stored drafts are named.
  • The base gaining a draft while the package-unbound draft is stored: address unchanged. Drafts [BASE, package-unbound] over the dependent's lone active row still give key: null, into: DEPENDENT; the bare doors act on the package-unbound draft and the base's draft is reached by naming the base. As on main.
  • The bare draft SAVE over the package-unbound draft: wrong, S2 below. The four doors each answer as on main, but the save's own result lands in the moved cell.

② Semver level

Unchanged and still right: patch, Clause-②: no (narrowing), Metadata-protocol: none, BREAKING banner, ADR-0087 not-required. Check Changeset is success on the new head. The banner now says the base holds a stored row "at some member (its canonical member, or another one such as de-DE)" and the dependent a row of another, non-canonical member the base holds none of: that is the cell rowHeldBaseJudgment judges. "Not moved" now names the package-unbound draft sub-cell with each door's answer, and each sentence agrees with the tree. What it does not say is what the adopted draft is addressed as afterwards (S2).

③ Boundary flags

  • Dev report 7162337288: open_questions empty. Its four deviations (the pin split into four tests, the adoption measured as into the dependent's draft, the draft-read leg being a control under the ablation, the extra as-on-main run) are accepted; the second is the fact S2 rests on.
  • SQL push-down: the delta adds no read. Not a finding.
  • Security: unchanged from the prior record; the predicate only narrows where the base's address replaces the stored one.

④ Design judgment

S2 (should-fix) — at the kept sub-cell the bare draft save answers 200 and writes a draft the next bare draft door no longer reaches. With a package-unbound draft at the member over the dependent's lone active row, the save's follow now declines and the repository adopts that draft into the dependent (resolveWriteHead, the orphan-draft adoption; the new pin ud_save asserts the row becomes the dependent's draft and stops there). The stored state is then "only the dependent's draft at the member", the cell this PR moves: the next address is key the dependent, the predicate is true, the wrapper answers the base with kind: 'none'. So, on this head, after that one successful bare draft save: the bare draft read no longer finds the draft just saved, the bare per-item publish answers 404 NO_DRAFT naming it, the bare discard discards nothing, and a second bare draft save writes a draft bound to the base beside it. On main each of those acted on the adopted draft. This is the save-then-read split the card was filed for and the split the dev's first-round deviation removed for the unmoved state ("moving the draft save alone broke the bare draft chain"), reopened for one step of this sub-cell. It follows from option (a) as my prior record worded it, which named the wrapper and did not separate the save; the finding is on the tree, not on the dev's reading of that option.
Fix, one of, with a pin that reads the draft back through the bare draft read after the bare draft save in this sub-cell:
(a) the save at this address keeps the draft where the other three doors address it (no adoption into the dependent here), so the chain stays on the package-unbound draft until it is published or discarded; or
(b) move the sub-cell after all, as the prior record's option (b): the save writes the base's draft, the other doors act on the base's draft, and the bare discard's receipt names the remaining package-unbound draft as the request naming the base does; or
(c) keep the adoption and declare the consequence in the changeset (after a bare draft save here the draft is the dependent's and is reached only by naming the dependent), with the save's receipt naming the package it landed in. This leaves a 200 save followed by a bare draft read that misses it, so it is the weakest of the three against "reads and writes give the same answer".

No must-fix.

Nits N1 to N4 of the prior record: unchanged by this delta, no fix needed on this head (N2 still wants the cell added to #35529 or its own card). No new nit.

The four new pins: each lays the state through the real path (a bare draft save while no package holds the member, then the dependent's row) and asserts rows per door; the read pin asserts subject and package. They hold S1's sub-cell as on main. ud_save is the pin S2 extends.

Implemented-by: claude/project-thread-g0avze
Reviewed-by: session_01J8VVAo7qz23KxTeCEv1faj/fable-l2-37069

VERDICT: PASS

…nt-only member to the base's draft address

The bare draft doors and the draft save's follow take the row-held base's
draft address over a stored package-unbound draft too, so the bare draft save
writes the base's draft (the package-unbound draft untouched) and the bare
draft read reads back what was saved. The bare draft discard with no base
draft answers the receipt the discard naming the base answers, naming the
package-unbound draft still stored.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J8VVAj3FYe91JCMQZPS88h
…t at the base's draft address

The changeset moves that sub-cell from "Not moved" into its FROM/TO.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J8VVAj3FYe91JCMQZPS88h
…kage-unbound draft with no base draft

Measured: with no base draft at the member, the draft read naming no package
and the one naming the base both serve the package-unbound draft. The
wrapper's docblock and the changeset said no door acted on it; the pin now
holds the bare read equal to the named one.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J8VVAj3FYe91JCMQZPS88h
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · huangyiirene · session_01J8VVAj3FYe91JCMQZPS88h

Final green head for the round-2 delta reviews, 2026-11-25T15:01Z: 344fc148d28a5cbbb1ad4ba7cddcdca97d372a17 (S2 option (b), the seat's route: the package-unbound-draft sub-cell moves to the base for the draft-address wrapper and the draft save; the bare discard's receipt there equals the named-base receipt; pins (i)–(iv) reshaped; changeset sub-cell moved into FROM/TO). CI at this head: 39 success, 18 skipped, 0 red. Full dogfood battery at this head: Test Files 487 passed, 3 skipped; Tests 4128 passed, 68 skipped; no failures (os-dev-report 7166160987 on #35524). Owed: L1 delta, then the contract-review delta on S2 by the same reviewer, both at this head. ACCEPT 7162425293 lapsed with the head move. This is patch round 2 of 2.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · huangyiirene · session_01J8VVAo7qz23KxTeCEv1faj

席位核对

L1 · ACCEPT (delta, round 2) · 2026-11-25T15:03Z · head 344fc148d28a5cbbb1ad4ba7cddcdca97d372a17 · L1-c, for area f2-I · card #35524 · after patch round 2 on S2 of record 7162492514 (option (b), the seat's pick); supersedes ACCEPT 7162425293

  • 形态: l1-face.mjs --pr 37069 at this head: open, draft, base main, Fixes #35524. Face flags read by hand: @objectstack/runtime = the test file only (dist-only package), cleared as before; dogfood_battery pinned to 344fc148 in report 7166160987, full battery, 487 files / 4128 tests passed, no failures.
  • Delta read (ae5ffb36..344fc148, 3 commits, 4 files, +132/−52): the key === null exemption is reverted (draftAddressFollowsRowHeldBase = into !== null), so the bare draft save writes the base's draft and the repository's orphan adoption no longer runs; the bare discard over a stored package-unbound draft with no base draft now answers the named-base receipt (receiptPackageId in protocol-diff-delete-load.ts), never "No pending draft" while one is stored. The new file in the surface (protocol-diff-delete-load.ts) is the receipt the S1 option (b) wording asked for; accepted.
  • Changeset re-read sentence by sentence: the sub-cell left "Not moved" and is now its own FROM/TO, and each TO sentence (save writes the base's draft beside the untouched package-unbound one; bare read reads back what was saved; publish promotes the base's draft; second save updates it; with no base draft publish 404 NO_DRAFT, discard names the package-unbound draft, read still serves it as the named read does) matches the code and pins (i)–(iv).
  • 测试与门禁证据: pins (i)–(iv) assert bare equals named on rows, outcome, NO_DRAFT/404 and the receipt. Ablation E (exemption put back) turns (i)–(iv) red; F (receipt guard removed) turns (iii) red; both restored to HEAD blobs. Check-runs at this head: 39 success, 18 expected skip, 0 failed, 0 pending; Lint & Repo Gates and TypeScript Type Check success.
  • 接受的偏差: report deviations (1)–(5), including (2): the receipt arm also answers the moved cell where the dependent's draft and a package-unbound draft are both stored, which changes no main cell since only the wrapper's moved address is none with an unbound draft. (6) is an observation on the named-base read's fallback, outside this card, unfiled; added to the seat-owed list.
  • 落地条款: owed next on this head: the delta contract review of S2 by the same reviewer. Per the seat, a should-fix or worse on that delta goes to the maintainer through the seat, with no third round. Narrowing ⇒ approver-landed after a clean PASS. Seat-owed items: the two class-b findings of ACCEPT 7159693982, the metadata-protocol: follow-ups from the #35450 contract review: the spec exception text, three door-request comments, and a rollback pin over real history #35529 amendment (record N2), and observation (6). A new push voids this ACCEPT.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · huangyiirene · session_01J8VVAo7qz23KxTeCEv1faj

Contract-review-claim: session_01J8VVAo7qz23KxTeCEv1faj · head 344fc14 · 2026-11-25T15:04Z

Delta review of S2 (record 7162492514) on the round-2 head, by the same isolated CONTRACT_REVIEW_TIER reviewer, the only agent running seat-wide.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · huangyiirene · session_01J8VVAo7qz23KxTeCEv1faj

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 344fc148d28a5cbbb1ad4ba7cddcdca97d372a17
Local-runs: none
Scope: packages/metadata-protocol/src/protocol-save.ts, packages/metadata-protocol/src/protocol.ts, packages/metadata-protocol/src/protocol-diff-delete-load.ts, packages/runtime/src/domains/meta-bare-save-dependent-only-member-35524.test.ts + .changeset/35524-bare-save-follows-base-dependent-member.md (read for ② only, not ④-reviewed)
Security-touching: no
Rule-change-verified: none

Second delta review, after records 7159864456 (db0a77a9) and 7162492514 (ae5ffb36). PR #37069, card #35524, narrowing face. Read: the diff between ae5ffb36 and this head (four files; protocol-diff-delete-load.ts is new to the diff and joins the scope), dev report 7166160987 (weighed, not adopted), the check-runs on this head, and, outside the diff, packagelessDraftAddress, the repository's orphan-draft adoption in resolveWriteHead, and the per-item publish. Nothing built or run. Check-runs on this head: 39 success, 18 skipped, none failed.

S1: closed
S2: closed

① Derived judgments

  • The predicate back to into !== null: right for option (b). Every non-ambiguous address bound to a package by the active rows follows the base where the helper answers one, the package-unbound draft's (key === null) included. One predicate still serves the wrapper and the save's follow.
  • The save-then-read chain at the sub-cell: holds. Package-unbound draft at the member over the dependent's lone active row. The bare draft save: the wrapper answers the base (none), the follow sets request.packageId to the base, and the repository's orphan-draft adoption, which runs only for packageId == null, does not run; the base's draft is written beside the package-unbound one. The next address: drafts are the base's and the package-unbound one, the stored address is key: null, into: DEPENDENT, the predicate is true and the wrapper answers kind: 'draft', key: BASE because drafts.candidates holds the base. So the bare draft read, publish, discard and second save all reach the draft just saved. Pinned per door (ud_save, ud_publish_bare, ud_resave), each against the request naming the base.
  • The bypass on every draft-save path: holds. The REST door and the in-process call share saveMetaItemUnaudited; the address is read and the follow asked for every authoring draft save naming no package (source unset, not package-duplicate). The server-stated rewrites resolve no address, as before. The metadata-protocol: with a bundled base and a dependent both holding a member, the bare write doors still answer 409 naming both while the bare read now answers the base #34681 ambiguous arm already passed the base down the same way.
  • The receipt arm (kind === 'none' && into !== null && rowsAtAddress.unbound): fires only at the wrapper's address. packagelessDraftAddress never returns none with a package in into while a package-unbound draft is stored: that state is kind: 'draft', key: null in its own code, and the item bound to no package has into: null. The ambiguous follow sets draftAddress to undefined, and an active delete has no draft address, so receiptPackageId is request.packageId there. rowsAtAddress is draftAddress.drafts, which the wrapper passes through unchanged from packagelessAddress(..., 'draft'): the stored draft bindings at the member. No cell on main changes.
  • Deviation (2), the dependent's draft and a package-unbound draft both stored, no base draft: right. The arm fires and the bare discard answers the named-base receipt naming both remaining drafts, where the two earlier heads answered the metadata-protocol: the draft doors naming no package resolve three addresses — the save and read inherit the active binding, the discard reads the draft rows, the publish takes the first draft row a package-agnostic findOne returns #23495 receipt naming the same drafts. Same success and reset, nothing removed; the cell is already declared moved.
  • With no base draft, the bare draft read serves the package-unbound draft: as the code has it. The strict read is addressed at the base and falls back to the package-less draft, as the read naming the base does on main; pinned bare equal to named, and literally (unbound fr, no package).

② Semver level

Unchanged and right: patch, Clause-②: no (narrowing), Metadata-protocol: none, BREAKING banner, ADR-0087 not-required. Check Changeset is success on this head. The sub-cell moved from "Not moved" to its own FROM/TO pair, and each sentence of the TO was read against the tree: the save writes the base's draft beside the package-unbound one and leaves it untouched; the draft read reads it back; the publish promotes the base's draft into the base's row; a second save updates it; with no base draft the publish answers 404 NO_DRAFT and the discard discards nothing and names the package-unbound draft, as the named requests do; with no base draft the draft read still serves the package-unbound draft, as the named read does. All agree, and each has a pin. The FROM states main as the previous head's pins measured it.

③ Boundary flags

  • Dev report 7166160987: open_questions empty. Deviations (1), (3), (4) and (5) are process and accepted; (2) is judged in ①.
  • Deviation (6), accepted with a follow-up for the seat, not graded here: at the sub-cell with no base draft the draft read addressed at the base serves the package-unbound draft while the publish and discard at the same address answer NO_DRAFT and a nothing-discarded receipt. That is the named request's behaviour on main, outside this diff; this PR makes the bare request equal to it, which is the contract it declares. Its reach is now established (the bare doors arrive there), so it deserves a card of its own, including whether a version token read off that fallback draft pins a save that writes the base's draft.
  • SQL push-down: the delta adds no read and no join. Not a finding.
  • Security: no hunk changes who may write; the delete hunk changes a receipt's wording only.

④ Design judgment

No must-fix, no should-fix.

protocol-save.ts: the docblocks of the predicate, the wrapper and the follow now describe option (b) and agree with the code line by line; the S1 option (a) text is gone, with the reason it was replaced kept in the predicate's docblock.

protocol-diff-delete-load.ts: the arm's comment claims only the wrapper's address is none with a package-unbound draft stored; verified against packagelessDraftAddress in ①. The receipt text for a request naming a package is byte-identical to before (receiptPackageId is request.packageId there).

The test: pins (i) to (iv) lay the sub-cell through the real path and compare bare with the request naming the base on rows, on code and status, and for the discard on the whole receipt including its message. ud_discard also asserts the literal NO_DRAFT / 404.

Nits of record 7159864456, status on this head (none needs a fix here):

Implemented-by: claude/project-thread-g0avze
Reviewed-by: session_01J8VVAo7qz23KxTeCEv1faj/fable-l2-37069

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · huangyiirene · session_01J8VVAm8Y73VGNq3PkTe3dc

维护者速读

席位意见:ACCEPT(L1-c 7166246625),请审批人批准。

席位核对

ACCEPT · repo:objectstack#2 · head 344fc148d28a5cbbb1ad4ba7cddcdca97d372a17 · card #35524

  1. 形态:5 个文件,+542/−15:packages/metadata-protocol/src/{protocol-save,protocol,protocol-diff-delete-load}.ts、runtime 钉子测试、changeset;Fixes #35524。
  2. 前提实测:label-write --handoff --dry-run 读出走 narrowing 一路(Tier H)。landing-k --pr 37069 读出 K = 5 < 15,分支已合入 main。dogfood 全量在 344fc14 通过(487 个文件,4128 个测试)。
  3. 门禁 check-runs:当前 head 39 success、18 expected skip、0 failed、0 pending,mergeable_state clean(pr-state --pr 37069);check-expected-skips --pr 37069 OK。
  4. 接受的偏差:契约评审首轮 S1 和第一轮修补引出的 S2,都已在 344fc14 关闭(同一评审人的 delta PASS 7166314396,没有 must-fix 和 should-fix)。N1–N4 留作后续。
  5. 范围外去向:构建报告的两项 class-b 发现、N1–N4(其中 N2 扩大 metadata-protocol: follow-ups from the #35450 contract review: the spec exception text, three door-request comments, and a rollback pin over real history #35529 的范围)和观察 6,都记在席位的后续清单里,本 PR 落地后再立卡或修改卡。metadata-protocol: follow-ups from the #35450 contract review: the spec exception text, three door-request comments, and a rollback pin over real history #35529 改写同一段 packageId 文字,所以排在本 PR 之后。Skills-docs: none。
  6. 落地条款:走 narrowing 一路,等审批人在当前 head 批准。批准后本席入队落地(维护者 2026-11-24 授权:「审批人批准后的 Tier H PR 你可以自主落地」)。head 若移动,本记录与评审作废。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · huangyiirene · session_01J8VVAm8Y73VGNq3PkTe3dc

Approval requested on head 344fc148: the narrowed leg (Tier H by the 2026-11-19 ruling on #35321). Contract review PASS 7166314396 at this head (Served-tier: CONTRACT_REVIEW_TIER). L1 ACCEPT 7166246625. All checks green, K = 5. After an authorized approval on this head, seat 2 lands it through the queue.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 25, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 25, 2026 16:37
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit fd06b11 Nov 25, 2026
63 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-g0avze branch November 25, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

3 participants